//
//  HNGiveAwayFlowerCell.m
//  优学荟管理系统
//
//  Created by edz on 2017/11/14.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "HNGiveAwayFlowerCell.h"

@implementation HNGiveAwayFlowerCell
{
    __weak IBOutlet UIButton *_SelectBtn;
    __weak IBOutlet UILabel *_Name;
}

- (void)setModel:(HNGiveAwayFlowerModel *)Model {
    
    _Model = Model;
    
    _SelectBtn.selected = Model.Selected;
    _Name.text = Model.petName;
}


/** 点击了选择 */                              
- (IBAction)SelectAction:(UIButton *)sender {
    
    self.SelectAction ? self.SelectAction(self.Model) : nil;
}

@end
